package RTL.Task4;

import java.util.List;

public interface Update {
    public static <E> boolean update (List<E> list, E element) {
        if (list.contains(element)) {
            list.remove(element);
            list.add(element);
            return true;
        } else {
            return false;
        }
    }
    void update();
}
